HighContrast: update for separators deprecations
authorCosimo Cecchi <cosimoc@gnome.org>
Wed, 30 Dec 2015 18:59:56 +0000 (10:59 -0800)
committerCosimo Cecchi <cosimoc@gnome.org>
Sun, 3 Jan 2016 08:42:51 +0000 (00:42 -0800)
HighContrast still has a long way to go, but let's get at least
separators working again.

gtk/theme/HighContrast/_common.scss
gtk/theme/HighContrast/gtk.css

index 4dc5ce6db990e738a878155396ca94f7de16e093..5f86c3246860f02b1f7fb468398fb63daccfabb4 100644 (file)
@@ -439,9 +439,7 @@ button {
   }
 
   .primary-toolbar & { -gtk-icon-shadow: none; } // tango icons don't need added shadows
-//  .separator {
-//    -GtkWidget-wide-separators: true;
-//   }
+
   .linked > &,
   .linked > &:hover,
   .linked > &:active,
@@ -763,10 +761,6 @@ combobox {
     color: $insensitive_fg_color;
   }
   .menuitem { text-shadow: none; }
-  & separator.vertical {
-    // always disable separators
-    -GtkWidget-wide-separators: true;
-  }
   &.combobox-entry entry {
     border-radius: 3px 0 0 3px;
     &:dir(rtl) {
@@ -898,8 +892,6 @@ headerbar {
   }
   .header-bar-separator,
   & > GtkBox > separator.vertical {
-    -GtkWidget-wide-separators: true;
-    -GtkWidget-separator-width: 1px;
     border-width: 0 1px;
     border-color: $fg_color;
     border-style: solid;
@@ -998,6 +990,7 @@ treeview.view {
   }
 
   &.separator:backdrop {
+    min-height: 2px;
     color: transparentize(black, 0.9);
   }
 
@@ -1931,16 +1924,9 @@ scrolledwindow {
 
 //vbox and hbox separators
 separator {
-  // always disable separators
-  // -GtkWidget-wide-separators: true;
-  color: $borders_color;
-
-  // Font and File button separators
-  GtkFileChooserButton &.vertical,
-  button.font &.vertical {
-    // always disable separators
-    -GtkWidget-wide-separators: true;
-  }
+  background: $borders_color;
+  min-width: 1px;
+  min-height: 1px;
 }
 
 /*********
index 6c698846f6c80d02388e80f3fef914748d58b252..77ed4987da080600baaeb6fb2192466f606206ec 100644 (file)
@@ -906,10 +906,6 @@ combobox {
     color: gray; }
   combobox .menuitem {
     text-shadow: none; }
-  combobox separator.vertical,
-  combobox placessidebar .view separator.vertical:backdrop,
-  placessidebar .view combobox separator.vertical:backdrop {
-    -GtkWidget-wide-separators: true; }
   combobox.combobox-entry entry {
     border-radius: 3px 0 0 3px; }
     combobox.combobox-entry entry:dir(rtl) {
@@ -989,8 +985,6 @@ headerbar {
   headerbar .header-bar-separator,
   headerbar > GtkBox > separator.vertical,
   placessidebar .view headerbar > GtkBox > separator.vertical:backdrop {
-    -GtkWidget-wide-separators: true;
-    -GtkWidget-separator-width: 1px;
     border-width: 0 1px;
     border-color: #000;
     border-style: solid; }
@@ -1162,6 +1156,7 @@ treeview.view {
     treeview.view:insensitive:backdrop {
       color: gray; }
   treeview.view.separator:backdrop {
+    min-height: 2px;
     color: rgba(0, 0, 0, 0.1); }
   treeview.view:backdrop {
     color: #000;
@@ -2189,11 +2184,9 @@ scrollbar scrolledwindow trough {
 
 separator, placessidebar .view separator,
 placessidebar .view separator:backdrop {
-  color: gray; }
-  GtkFileChooserButton separator.vertical,
-  GtkFileChooserButton placessidebar .view separator.vertical:backdrop,
-  placessidebar .view GtkFileChooserButton separator.vertical:backdrop, button.font separator.vertical {
-    -GtkWidget-wide-separators: true; }
+  background: gray;
+  min-width: 1px;
+  min-height: 1px; }
 
 /*********
  * Lists *